package com.ibeifeng.easybuy.model;

import java.util.Date;

public class User {
	
	private int u_id;
	private String username;
	private String password;
	private String gender;
	private String email;
	private String phone;
	private Date birthDate;
	private String photo;
	private String address;
	
	public User() {}

	public User(String username, String password, String gender,
			String email, String phone, Date birthDate, String photo,
			String address) {
		this.username = username;
		this.password = password;
		this.gender = gender;
		this.email = email;
		this.phone = phone;
		this.birthDate = birthDate;
		this.photo = photo;
		this.address = address;
	}

	public int getU_id() {
		return u_id;
	}

	public void setU_id(int u_id) {
		this.u_id = u_id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "User [u_id=" + u_id + ", username=" + username + ", password="
				+ password + ", gender=" + gender + ", email=" + email
				+ ", phone=" + phone + ", birthDate=" + birthDate + ", photo="
				+ photo + ", address=" + address + "]";
	}
	
}
